package info.wangyuan.agent.service.curd;

import com.baomidou.mybatisplus.extension.service.IService;
import info.wangyuan.agent.entity.po.FileInfo;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody;

import java.util.List;

/**
 * 文件信息服务
 *
 * @author Albert
 * @since 2025-08-17 03:45:15
 */
public interface FileInfoService extends IService<FileInfo> {

    void saveFile(List<MultipartFile> file, Integer kbId);

    void canUpdate(FileInfo fileInfo);

    void canDelete(Integer id);

    ResponseEntity<StreamingResponseBody> downloadFile(Integer id);
}
